﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebApp.App.Models.BLL.Cms
{
    public class Site
    {
        public NRapid.List<Models.Entity.Common.site> GetSite()
        {
            
            var con = Models.Common.OpenConnection();
            var defaultSiteId = con.QueryObject("select id from site where is_default!=0").ToInt32();
            defaultSiteId = 1;
            var sites = con.QueryAll<Models.Entity.Common.site>("select * from site where is_default!=0");
            con.Close();
            return sites;
        }
    }
}        